<?php

declare(strict_types=1);
/*
 * This file is part of Leonsw.
 *
 * @link     https://leonsw.com
 * @document https://docs.leonsw.com
 * @contact  leonsw.com@gmail.com
 * @license  https://leonsw.com/LICENSE
 */
namespace App\Resource\Lottery2\User;


use Illuminate\Http\Resources\Json\JsonResource;

class UserBalanceResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            'id' => $this->balance_id,
            'name' => $this->setting->name,
            'name_image' => $this->setting->name_image,
            'image' => $this->setting->image,
            'special' => $this->setting->special,
            'coin' => $this->setting->coin,
            'count' => $this->count,
            'min_score' => $this->setting->min_score,
            'max_score' => $this->setting->max_score,
        ];
    }
}
